from django.contrib import admin
from .models import carInfo

@admin.register(carInfo)
class CarInfoAdmin(admin.ModelAdmin):
    list_display = ('id', 'carName','brand', 'carImg', 'saleVolume', 'price', 'manufacturer', 'rank', 'carModel','energyType','marketTime','insure','createTime')
    search_fields = ('carName',)


admin.site.site_header = '车辆数据可视化管理后台'  # 设置header
admin.site.site_title = '车辆数据可视化管理后台'   # 设置title
admin.site.index_title = '车辆数据可视化管理后台'

